import os

from ujson import loads  # pip install ujson
import aiofiles  # pip install aiofiles


async def get_json(fileneme: str) -> list:
    path = f"data/{fileneme}"
    
    if os.path.existsts(path):
        async with aiofiles.open(path, "r", encoding="utf-8") as file:
            return loads(await file.read())
        return []